laravel append to model

33

protected $appends = ['user'];
public function getUserAttribute()
{

    return $this->user();

}

Comments

Submit
0 Comments